package com.example.day02.ex02;
import java.util.Scanner;
public class ScannerTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int x = sc.nextInt();
        System.out.println("请输入第二个整数");
        int y = sc.nextInt();
        System.out.println("请输入第三个整数");
        int z = sc.nextInt();
        int temp = x>y?x:y;
        int max=temp>z?temp:z;
        System.out.println("较大值是："+max);
    }
}
